import { mapGetters } from 'vuex'

export default {
  computed: {
    ...mapGetters(['roles', 'points'])
  },
  methods: {
    // 检验用户按钮权限
    checkPermission(val) {
      return (this.roles && !this.roles.points.includes(val))
    }
  }
}

